// 定义一个默认状态
const defaultState = {
  msg: "你好世界",
};
// eslint-disable-next-line import/no-anonymous-default-export
export default (state = defaultState,action) => {
    let newState = JSON.parse(JSON.stringify(state));
    switch(action.type){
        case "changeMsgFn":
            newState.msg = action.value;
            break;
            default:break;
    }
  return newState;
};
